Skip to content

test(harness): wait for a failed remote turn to release its identity - #4247

Merged
LHagfoss merged 1 commit into
mainfrom
test/harness-remote-failure-timing-flake
Nov 22, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
test/harness-remote-failure-timing-flake

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

runtime::remote::tests::remote_provider_failure_retains_authoritative_terminal_timing failed on CI for #4242 and #4244 at harness/src/runtime/remote.rs:1892 (state.active_turn_id.is_none()). The failed turn's TurnFinished is published from the UI event before the orchestrator task unwinds and calls end_turn_identity, so the state can still hold the turn id for a moment. The test now waits, bounded by WAIT, for the identity to clear before it checks the state.

Changelog

No user-facing change.

Testing

cargo check --workspace --tests; CI runs the test.

The published TurnFinished can reach the device before the orchestrator
task clears active_turn_id, so the state assertion raced it on CI.
@github-actions github-actions Bot added the test Tests and test infrastructure label Nov 22, 2026
@LHagfoss
LHagfoss merged commit bf2cd1c into main Nov 22, 2026
7 checks passed
@LHagfoss
LHagfoss deleted the test/harness-remote-failure-timing-flake branch November 22, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Tests and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant